<template>
	<view class="page">
		<swiper v-if="showSwiper" indicator-dots="true">
			<swiper-item v-for="(img,key) in imgUrls" :key="key">
				<image :src="img" />
			</swiper-item>
		</swiper>
		<view class="uni-padding-wrap uni-common-mt">
			<view class="uni-title">
				<view>在App端默认为标题栏透明，当用户向下滚动时，标题栏逐渐由透明转变为不透明；当用户再次向上滚动时，标题栏又从不透明变为透明状态。</view>
				<view>在微信小程序端，导航栏始终为不透明样式。</view>
			</view>
		</view>
		<view class="uni-list">
			<view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(item,index) in list" :key="index">
				<view class="uni-media-list">
					<image class="uni-media-list-logo" :src="item.img"></image>
					<view class="uni-media-list-body">
						<view class="uni-media-list-text-top">{{item.title}}</view>
						<view class="uni-media-list-text-bottom uni-ellipsis">{{item.content}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showSwiper: true,
				imgUrls: [
					"../../static/index-1.png",
					"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg"
				],
				"list":[{
					"img":"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"title":"标题",
					"content":"XXXXXXXXXXXXXXXXXXXXXXXXX"
				},
				{
					"img":"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"title":"标题",
					"content":"XXXXXXXXXXXXXXXXXXXXXXXXX"
				},
				{
					"img":"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"title":"标题",
					"content":"XXXXXXXXXXXXXXXXXXXXXXXXX"
				},
				{
					"img":"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"title":"标题",
					"content":"XXXXXXXXXXXXXXXXXXXXXXXXX"
				},
				{
					"img":"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg",
					"title":"标题",
					"content":"XXXXXXXXXXXXXXXXXXXXXXXXX"
				}]
			}
		}
	}
</script>

<style>
	image,
	swiper,
	.img-view {
		width: 750upx;
		height: 500upx;
	}
	.page-section-title{
		margin-top: 50upx;
	}
</style>
